From 32485a4701f7651b1b8cf2b3f4b6830c7d7f6f27 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sat, 9 Feb 2013 22:00:50 +0000 Subject: [PATCH] Propagate find_vec const-ness upstream. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4294 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/defs.h | 2 +- gpsbabel/garmin.cc | 4 ++-- gpsbabel/magproto.cc | 2 +- gpsbabel/main.cc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index c6c75d722..aa547669a 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -923,7 +923,7 @@ void is_fatal(const int condition, const char*, ...) PRINTFLIKE(2, 3); void warning(const char*, ...) PRINTFLIKE(1, 2); void debug_print(int level, const char* fmt, ...) PRINTFLIKE(2,3); -ff_vecs_t* find_vec(const char *, char**); +ff_vecs_t* find_vec(const char *, const char**); void assign_option(const char* vecname, arglist_t* ap, const char* val); void disp_vec_options(const char* vecname, arglist_t* ap); void disp_vecs(void); diff --git a/gpsbabel/garmin.cc b/gpsbabel/garmin.cc index 6b5a4f5dc..1f0d2243c 100644 --- a/gpsbabel/garmin.cc +++ b/gpsbabel/garmin.cc @@ -301,7 +301,7 @@ static void rd_init(const char* fname) { if (setjmp(gdx_jmp_buf)) { - char* vec_opts = NULL; + const char* vec_opts = NULL; const gdx_info* gi = gdx_get_info(); gpx_vec = find_vec("gpx", &vec_opts); gpx_vec->rd_init(gi->from_device.canon); @@ -445,7 +445,7 @@ track_read(void) route_head* trk_head = NULL; int trk_num = 0; int i; - char* trk_name = ""; + const char* trk_name = ""; GPS_PLap* laps = NULL; int nlaps = 0; int next_is_new_trkseg = 0; diff --git a/gpsbabel/magproto.cc b/gpsbabel/magproto.cc index 6be7a1edd..d34fabbce 100644 --- a/gpsbabel/magproto.cc +++ b/gpsbabel/magproto.cc @@ -777,7 +777,7 @@ mag_rd_init_common(const char* portname) const char** dlist = os_get_magellan_mountpoints(); explorist_info = explorist_ini_get(dlist); if (explorist_info) { - char* vec_opts = NULL; + const char* vec_opts = NULL; gpx_vec = find_vec("gpx", &vec_opts); } return; diff --git a/gpsbabel/main.cc b/gpsbabel/main.cc index ce0199ed6..eccf19259 100644 --- a/gpsbabel/main.cc +++ b/gpsbabel/main.cc @@ -234,8 +234,8 @@ main(int argc, char* argv[]) filter_vecs_t* fvecs = NULL; char* fname = NULL; char* ofname = NULL; - char* ivec_opts = NULL; - char* ovec_opts = NULL; + const char* ivec_opts = NULL; + const char* ovec_opts = NULL; char* fvec_opts = NULL; int opt_version = 0; int did_something = 0; -- 2.30.2